ubuntu 安装git

问题描述:

        ubuntu安装git

问题解决:

    (1)ubuntu下载git

git

注:

          使用命令apt-get install git安装

    (2)查看git是否安装成功、查看ssh密钥

gitversion

注:

      如上,git --version 查看git版本,使用命令

ssh-keygen -t rsa -C 814010510@qq.com生成rsa密钥

        (3)github添加ssh密钥

ssh

注:

     登陆github网站,在Account Setting中查看SSH Keys  添加ssh  rsa 公钥

addkey

    (4)添加成功之后,ubuntu连接git

github

注:

         使用命令ssh -T git@github.com 可以成功连接github

参考网站:

         https://help.github.com/articles/generating-ssh-keys

        http://www.cnblogs.com/yourihua/archive/2012/07/07/2580147.html

posted @ 2013-11-05 13:10  罗松超  阅读(3838)  评论(0编辑  收藏  举报